﻿#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int main()
{
	FILE* pfile;
	pfile = fopen("myfile.txt", "w");
	if (pfile != NULL)
	{
		fputs("fopen example", pfile);
		//关闭⽂件
		fclose(pfile);
	}
	return 0;
}